# !/usr/bin/env python
# coding=utf-8
# @Time    : 2018/5/10 16:30
# @Author  : 6imensiva
# @Site    : https://gitee.com/dimensiva/h5_server.git
# @File    : my_print.py
# @Software: PyCharm
# @Version: 3.5.4
import sys
from configs import current_config
def configure_print():
	if not current_config.DEBUG:
		class MC:
			def write(*_):
				pass

			def flush(self):
				pass

		sys.stdout = MC()


def print_obj(obj):
	L = ['%s=%r' % (key, value)
	     for key, value in obj.__dict__.items()]
	print('%s(%s)' % (obj.__class__.__name__, ', '.join(L)))


